package com.qy.service.impl;

import com.qy.dao.RolePermissionsMapper;
import com.qy.model.RolePermissions;
import com.qy.service.RolePermissionsService;
import com.qy.base.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;


/**
 * Created by zaq on 2018/03/12.
 */
@Service
@Transactional
public class RolePermissionsServiceImpl extends AbstractService<RolePermissions> implements RolePermissionsService {
    @Resource
    private RolePermissionsMapper qyRolePermissionsMapper;

    @Override
    public List<RolePermissions> selectRolePermissions(Integer id, Integer role_id) {
        return qyRolePermissionsMapper.selectRolePermissions(id, role_id);
    }
}
